package com.yzh.opp4.teacher;


public class TestDowncasting2 {
    public static void main(String[] args) {
        Programmer pro = new Chinese();//向上转型

        System.out.println(pro instanceof  Object);//true
        System.out.println(pro instanceof  Programmer);//true
        System.out.println(pro instanceof  Chinese);//true
        System.out.println(pro instanceof English);//false
        //System.out.println(pro instanceof String);//
    }
}
